package com.bdqn.t296.noso.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.bdqn.t296.noso.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface RegisterMapper  extends BaseMapper<Register> {
    IPage<Register>selectUser(Page<Register> page, @Param(value = "register") Register register);
    //条件查询科室
    List<Departments> selDepartment(Departments departments);
    //条件查询医生
    List<Doctor> selDoctor(Doctor doctor);
    //查询床位
    List<Bed> selBed(Bed bed);
    //查询折扣
    List<Moneytype> selDis();
    //执行添加患者
    int addRegister(Register register);
    //查询患者
    List<Register> selRegister(Register register);
    //逻辑删除门诊信息
    int updZ(Register register);
    //修改患者信息
    int updKe(Register register);
    //修改患者床位状态
    int updBed(Register register);

}
